<template>
  <div>
    <h1>app</h1>
    <button @click="toggle">toggle</button>
    <Child v-if="isShow"></Child>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import Child from './Child.vue'
const isShow = ref(false)
const toggle = () => {
  isShow.value = !isShow.value
}
</script>

<style
  lang="scss"
  scoped
></style>
